<!--
 * @Author: wuchao66_Git 2803670835@qq.com
 * @Date: 2023-10-27 11:26:32
 * @LastEditors: wuchao66_Git 2803670835@qq.com
 * @LastEditTime: 2023-10-27 11:27:39
 * @FilePath: \t162vue\src\views\demo1\t163.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        --------------------------------------
        <ul>
            <li v-for="(xjj,index) in arrays" :key="index">
                {{xjj.title}}
            </li>
        </ul>
        ---------
    </div>
    <script type="text/javascript" src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.0/axios.js">
    </script>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: function () {//数据
                return {
                    arrays: []
                }
            }, methods: {//方法
               
            }, mounted: function () {//跨域 app
                var list = axios.get('http://localhost:8080/entry/findEntry161?title=ssm')
                    .then(function (res) {//成功的返回值
                        console.log(res);
                        app.arrays = res.data;
                    }).catch(function (reason) {
                        console.log(reason)
                    });
            }
        });
    </script>
</body>
</html>